package com.sc.es.repo;

import com.sc.es.entity.Role;
import org.springframework.data.repository.CrudRepository;

import javax.persistence.criteria.CriteriaBuilder;
import java.util.List;

/**
 * @author sc
 * Created on  2018/2/6
 */
public interface RoleRepository extends CrudRepository<Role,Integer> {
    List<Role> findRolesByUserId(Integer userId);
}
